package com.zhuzi.entity.jc;

import com.zhuzi.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 巨潮减持
 */

@Data
@Accessors(chain = true)
@Entity
@Table(name = "jc_news", indexes = {
        @Index(name = "idx_jcentity_pubdate", columnList = "pubDate")
})
@org.hibernate.annotations.Table(appliesTo = "jc_news", comment = "巨潮-新闻")
public class JcEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 股票代码-002026
     */
    @Column(length = 10, columnDefinition = "varchar(10) COMMENT '股票代码'")
    private String secCode;

    @Column(length = 30, columnDefinition = "varchar(30) COMMENT '股票名称'")
    private String secName;

    @Column(length = 50, columnDefinition = "varchar(50) COMMENT '公告ID'")
    private String annId;

    @Column(length = 250, columnDefinition = "varchar(250) COMMENT '公告标题'")
    private String annTitle;

    @Column(length = 250, columnDefinition = "varchar(250) COMMENT '新闻URL'")
    private String adjunctUrl;

    @Column(length = 10, columnDefinition = "varchar(10) COMMENT '文件类型'")
    private String adjunctType;

    @Column(length = 10, columnDefinition = "date COMMENT '公告日期'")
    public LocalDate pubDate;

    @Column(length = 10, columnDefinition = "datetime(0) COMMENT '公告时间'")
    public LocalDateTime pubDateTime;

    @Column(length = 20, columnDefinition = "varchar(10) comment'类型-关键字'")
    private String newKeys;

    private boolean kzz;

    @Column(columnDefinition = "datetime(3) comment'抓取时间'")
    private LocalDateTime fetchDate;
}
